package com.zc.demo.aop;

import org.springframework.stereotype.Service;

/**
 * 定义魔术师类实现读心接口
 * Created by zhangchi9 on 2016/11/7.
 */
@Service("Magician")
public class Magician implements MindReader{
    private String thoughts;
    @Override
    public void interceptThoughts(String thoughts) {
        System.out.println("拦截志愿者的想法"+thoughts);
        this.thoughts=thoughts;
    }

    @Override
    public String getThoughts() {
        return thoughts;
    }
}
